package com.itheima;

import com.github.pagehelper.PageInfo;
import com.itheima.domain.Role;

import java.util.List;

public interface RoleService {
    PageInfo<Role> findByPage(int currPage, int pageSize);
    void save(Role role);
    Role findById(String id);
    void update(Role role);
    void delete(String[] ids);
    List<Role> findAll();
    void updateRoleAndModules(String roleId, String[] moduleIds);
    String[] findRoleIdsByUserId(String userId);
}
